package com.cy.factory;

import com.cy.service.AccountService;
import com.cy.service.impl.AccountServiceImpl;

/**
 * 模拟一个实例工厂，创建业务层实现类
 * 此工厂创建对象，必须现有工厂实例对象，再调用方法
 *
 * @Author : 残影
 * @Date: 2020-09-13 16:43
 */
public class InstanceFactory {
    public static AccountService createAccountService(){
        return new AccountServiceImpl();
    }

    public AccountService createAccountService2(){
        return new AccountServiceImpl();
    }
}
